@echo off
 
::启动 es7.3
echo start elasticsearch
call start /d "D:\elasticsearch-7.3.0\bin" elasticsearch.bat
::暂停几秒再执行后面的 命令
ping -n 15 127.1 >nul 2>nul
echo elasticsearch started!
 
::启动logstash
echo start logstash
call start /d "D:\logstash-6.8.6\bin" logstash -f logstash-simple.conf
::暂停几秒再执行后面的 命令
ping -n 5 127.1 >nul 2>nul
echo logstash started!
 
::启动mqnamesrv
echo start mqnamesrv
call start /d "D:\rocketmq4.7\bin" mqnamesrv.cmd
::暂停几秒再执行后面的 命令
ping -n 10 127.1 >nul 2>nul
echo mqnamesrv started!
 
::启动broker
echo start broker
call start /d "D:\rocketmq4.7\bin" mqbroker.cmd -c ..\conf\broker.conf -n localhost:9876 autoCreateTopicEnable=true
::暂停几秒再执行后面的 命令
ping -n 2 127.1 >nul 2>nul
echo broker started!
 
::启动xxl-job
echo start xxl-job
call start  java -jar E:\小然财税\lilishop-simplify\xxl-job\xxl-job-admin-2.3.0-SNAPSHOT.jar
::暂停几秒再执行后面的 命令
ping -n 2 127.1 >nul 2>nul
echo xxl-job started!
 
:: 多行注释方法 goto start =...  =...  :start   每行以=开始后面是内容， 最后以：start结束
 
pause
